<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//登录页面
Route::any('do_login','Login\LoginController@login')->name('login');

//注册
Route::any('register','Login\LoginController@register')->name('register');

//退出登录
Route::any('logout','Login\LoginController@logout')->name('logout');

//首页
Route::any('/','Home\IndexController@home3')->name('home');
//首页3
Route::any('home3','Home\IndexController@home3')->name('home3');
//双栏板式
Route::any('page2','Home\IndexController@page2')->name('page2');

//类别下的文章
Route::get('category',"Home\IndexController@category")->name('category');
//类别下的文章2
Route::any('category2','Home\IndexController@category2')->name('category2');
//详情页
Route::get('details',"Home\IndexController@details")->name('details');
//详情页2
Route::get('details2','Home\IndexController@details2')->name('details2');
//文章搜索
Route::any('search','Home\IndexController@search')->name('search');

//文章评论
Route::post('comments','Home\CommentsController@comments')->name('comments');

//阿里的爱情故事
Route::any('loves','Home\LoveController@love')->name('love');

//换一个语录
Route::post('change','Home\QuotationsController@change')->name('change');

//不开心嘛？点我点我
Route::post('happy','Home\HappyController@happy')->name('happy');

//意见反馈
Route::any('feedback_view','Idea\IdeaController@feedbackView')->name('feedback.view');//页面
Route::any('feedback_post','Idea\IdeaController@feedback')->name('feedback.feedback');//post提交->middleware('check.login')

//相册
Route::any('photo/{category_id?}','Home\AtlasController@photo')->name('photo');
//相册详情
Route::get('photo/details/{id?}','Home\AtlasController@details')->name('photo.details');
//相册搜索-已弃用
Route::get('photo/search','Home\AtlasController@search')->name('photo.search');

//防盗链测试
Route::any('getImage','Test\TestController@getImage');

//黑名单
Route::any('api/blacklist','Cron\BlacklistController@blacklist');
//百度收录
Route::any('api/baiduEmploy','Cron\WebController@baiduEmploy');


Route::any('api/method1','Test\TestController@method1');

Route::any('getUserId','Test\TestController@getUserId')->middleware('test');
